package com.ostrich.ostrichgateway.perm.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.ostrichgateway.perm.model.Perm;
import com.ostrich.ostrichgateway.perm.model.Role;
import com.ostrich.ostrichgateway.perm.model.UserParent;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface UserParentService extends IService<UserParent> {
    //根据user和roleid创建主表和权限表
    public Integer addUser(UserParent user,Integer roleId);
    //根据username查询用户
    public List<UserParent> selectUserByUsername(String username);
    //根据pid查询用户
    public UserParent selectUserByPid(Integer pid);
    //根据pid修改用户状态
    public String updateUserStatus(Integer pid,String status);
    //根据pid查询role列表
    public List<Role> selctRoleListByPid(Integer pid);
    //根据pid获取perm列表
    public List<Perm> getPermissionListByPid(Integer pid);
}
